package com.yuanchu.goods.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.common.utils.Query;

import com.yuanchu.goods.dao.YoshopCommentImageDao;
import com.yuanchu.goods.entity.YoshopCommentImageEntity;
import com.yuanchu.goods.service.YoshopCommentImageService;


@Service("yoshopCommentImageService")
public class YoshopCommentImageServiceImpl extends ServiceImpl<YoshopCommentImageDao, YoshopCommentImageEntity> implements YoshopCommentImageService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YoshopCommentImageEntity> page = this.page(
                new Query<YoshopCommentImageEntity>().getPage(params),
                new QueryWrapper<YoshopCommentImageEntity>()
        );

        return new PageUtils(page);
    }

}